<%= form_for([@project, @workpackage, @task]) do |f| %>
  <% if @task.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@task.errors.count, (t :error, :scope => [:helpers])) %></h2>

      <ul>
      <% @task.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label t :name, :scope => [:activerecord, :attributes, :task] %><br />
    <%= f.text_field :name %>
  </div>
  <div class="field">
    <%= f.label t :description, :scope => [:activerecord, :attributes, :task] %><br />
    <%= f.text_area :description %>
  </div>
  <div class="field">
    <%= f.label t :status, :scope => [:activerecord, :attributes, :task] %><br />
    <%= f.select(:status, t("activerecord.attributes.values.task.statuses").invert) %>
  </div>
  <div class="field">
    <%= f.label t :progress, :scope => [:activerecord, :attributes, :task] %><br />
    <%= f.select(:progress, [0, 25, 50, 75, 100] ) %>
  </div>
  <div class="field">
    <%= f.label t :planned, :scope => [:activerecord, :attributes, :task] %><br />
    <%= f.text_field :planned %>
  </div>
  <div class="field">
    <%= f.label t :performed, :scope => [:activerecord, :attributes, :task] %><br />
    <%= f.text_field :performed %>
  </div>
  <div class="actions">
    <%= f.submit session[:label] %>
  </div>
<% end %>
